<h4>订单详情</h4>
<table class="table table-bordered table-hover">
    <thead>
        <tr>
            <th>订单编号</th>
            <th>订单总重量</th>
            <th>订单总数量</th>
            <th>商品总价</th>
            <th>订单邮费</th>
            <th>订单总价</th>
        </tr>
    </thead>
    <tbody>
    <tr>
        <td>#(order.order_ser??'')</td>
        <td>#(order.totalWeight()??'')KG</td>
        <td>#(order.total_num??'')</td>
        <td>￥#(order.totalFee()??'')</td>
        <td>￥#(order.deliveryFee()??'')</td>
        <td>￥#(order.totalFeeWithDelivery()??'')</td>
    </tr>
    <tr >
        <td colspan="6">客户要求用:【#(order.deliveryType()??'')】进行派送</td>
    </tr>
    </tbody>
</table>
<h4>订单明细 </h4>
<p>【注:总重量为0KG的商品表示包邮商品，不代表商品真实重量】</p>
<table class="table table-bordered table-hover">
    <thead>
        <tr>
        <th>商品名称</th>
        <th>数量</th>
        <th>单价</th>
        <th>总价</th>
        <th>总重量</th>
        </tr>
    </thead>
    <tbody id="content">
    #for(o:orderItems)
    <tr>
        <td>#(o.name??'')</td>
        <td>#(o.num??'')</td>
        <td>￥#(o.price??'')</td>
        <td>￥#(o.total_price??'')</td>
        <td>#(o.total_weight??'')KG</td>
    </tr>
    #end
    </tbody>
</table>

<div class="form-group">
    <label for="name" class="col-sm-2 control-label">联系人</label>
    <div class="col-sm-10">
        #@textInput("text","order.name","name","请输入联系人...",order.name??'')
    </div>
</div>
<div class="form-group">
    <label for="mobile" class="col-sm-2 control-label">联系电话</label>
    <div class="col-sm-10">
        #@textInput("text","order.mobile","mobile","请输入联系电话...",order.mobile??'')
    </div>
</div>
<div class="form-group">
    <label for="address" class="col-sm-2 control-label">送货地址</label>
    <div class="col-sm-10">
        #@textInput("text","order.address","address","请输入送货地址...",order.address??'')
    </div>
</div>
<div class="form-group">
    <label for="status" class="col-sm-2 control-label">订单状态</label>
    <div class="col-sm-10">
        <select name="order.status" id="status" class="form-control">
            <option value="1" #if(order??&&order.status==1)selected#end>等待付款</option>
            <option value="2" #if(order??&&order.status==2)selected#end>已经付款</option>
            <option value="3" #if(order??&&order.status==3)selected#end>已发货</option>
            <option value="4" #if(order??&&order.status==4)selected#end>已收货</option>
            <option value="5" #if(order??&&order.status==5)selected#end>申请退货</option>
        </select>
    </div>
</div>


<div class="form-group">
    <div class="col-sm-offset-8 col-sm-10">
        <button type="button" id="submitBtn" class="btn btn-primary">点我保存</button>
        <input type="hidden" name="order.id" value="#(order.id??'')" id="id">
    </div>
</div>